namespace ndk
{
inline 
int file_io::read(char *bf, size_t len)
{
  return ndk_os::read(this->file_handle_, bf, len);
}
inline
int file_io::write(const char *bf, size_t len)
{
  return ndk_os::write(this->file_handle_, bf, len);
}
inline
long long file_io::tell(void)
{
  return ndk_os::tell(this->file_handle_);
}
inline
long long file_io::seek(long long offset, int whence/* = SEEK_CUR*/)
{
  return ndk_os::lseek(this->file_handle_, offset, whence);
}
inline
int file_io::truncate(long long length)
{
  return ndk_os::truncate(this->file_handle_, length);
}
inline
int file_io::remove(void)
{
  if (this->file_name_ == 0) return -1;
  return ndk_os::remove(this->file_name_);
}
} // namespace ndk
